﻿using SharpML.Api.Abstraction;
using SharpML.Api.Extensions;
using SharpML.Api.Types;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SharpML.Trainers.StockTrainers
{
    [Description("Stock Trainer Factory")]
    public class Factory : PluginComponentFactory
    {
        // TODO: Load CSV-based trainers
        public override IEnumerable<Api.Interfaces.IPluginComponent> GetPluginComponents()
        {
            throw new NotImplementedException();
        }

        public override Api.Interfaces.IPluginConfiguration Gui
        {
            get { throw new NotImplementedException(); }
        }

        public override XmlSerializableDictionary<string,object> Settings
        {
            get
            {
                return Properties.Settings.Default.Serialize();
            }
            set
            {
                Properties.Settings.Default.Deserialize( value );
            }
        }
    }
}
